]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Remove some now-unused code
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 20 Apr 2013 02:34:40 +0000 (22:34 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 23 Apr 2013 19:50:36 +0000 (15:50 -0400)
We don't have any sections with separators, so don't bother
tracking them.

https://bugzilla.gnome.org/show_bug.cgi?id=698427

js/ui/popupMenu.js

index 77196e3c704c4cc012dfcd474126fdad7c62b808..ac9ae6f53d9c95b846eb3903359ad5005440a083 100644 (file)
@@ -1466,23 +1466,12 @@ const PopupMenuSection = new Lang.Class({
         this.actor = this.box;
         this.actor._delegate = this;
         this.isOpen = true;
-
-        // an array of externally managed separators
-        this.separators = [];
     },
 
     // deliberately ignore any attempt to open() or close(), but emit the
     // corresponding signal so children can still pick it up
     open: function() { this.emit('open-state-changed', true); },
     close: function() { this.emit('open-state-changed', false); },
-
-    destroy: function() {
-        for (let i = 0; i < this.separators.length; i++)
-            this.separators[i].destroy();
-        this.separators = [];
-
-        this.parent();
-    }
 });
 
 const PopupSubMenuMenuItem = new Lang.Class({